package com.fegin.feginService;

import com.fegin.Hystrix.HelloWorldHystrix;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * @author 张子艺
 * @packge com.feginService.com.feginService
 * @data 2018-12-26 15:40
 * @project springCloud
 */

//微服务名字               熔断器
@FeignClient(value = "SERVICE" ,fallback = HelloWorldHystrix.class)
public interface  HelloWorldService {
    //映射的微服务路径
    @RequestMapping(value = "/helloService",method = RequestMethod.GET)
    String sayHello();
}
